import request from '@/utils/request'

// 查询佣金列表
export function listCommission(query) {
  return request({
    url: '/clientuser/brokerage/commission/list',
    method: 'get',
    params: query
  })
}

// 查询佣金详细
export function getCommission(id) {
  return request({
    url: '/clientuser/brokerage/commission/' + id,
    method: 'get'
  })
}

// 新增佣金
export function addCommission(data) {
  return request({
    url: '/clientuser/brokerage/commission',
    method: 'post',
    data: data
  })
}

// 修改佣金
export function updateCommission(data) {
  return request({
    url: '/clientuser/brokerage/commission',
    method: 'put',
    data: data
  })
}

// 删除佣金
export function delCommission(id) {
  return request({
    url: '/clientuser/brokerage/commission/' + id,
    method: 'delete'
  })
}
